﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _12._29._2014_IntroCSharp
{
    public abstract class TVRemote
    {
        //private class instance variable
        private string _color;
        //public instance property
        public string Color
        {
            get
            {
                return _color;
            }
            set
            {
                _color = value.ToUpper();
            }
        }

        public RemoteBrand Brand { get; private set; }
        
        //public instance method
        public abstract string ChangeChannelUp();

        public virtual string ChangeChannelDown()
        {
            return "Changed channel down for whatever TV I am";
        }

        //Overloading - overload the TVRemote constructor
        public TVRemote(RemoteBrand brand)
        {
            Brand = brand;
        }
    }

    public enum RemoteBrand
    {
        Memorex,
        Samsung,
        Sony,
        Panasonic,
        LG
    }
}
